package com.mdh.runerrands.service;

import com.mdh.runerrands.pojo.Product;
import com.mdh.runerrands.pojo.ProductDetail;

import java.util.List;

public interface ProductService {
    Product findById(int id);
    int batchDelete(int ...ids);
    boolean deleteById(int id);
    List<Product> findByCategoryId(int categoryId);
    List<Product> query(int page,int pageSize,String name,String description,String price,String status);
    int selectCount(String name,String description,String price,String status);
    List<ProductDetail> queryDetail(int page,int pageSize,String name,String description,String price,String status);
    boolean insert(Product product);
    boolean update(Product product);
}
